<?php
/**
 * @package  Guggenheim
 * @subpackage	Collections
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the Collections Component
 *
 * @package  Guggenheim
 * @subpackage	Collections
 */

class CollectionsViewShowFull extends JView {
    
  /**
   * CollectionsViewShowFull::display()
   *
   * @param mixed $tpl
   * @return void
   */
	function display($tpl = null) {
    	
      	$model =& $this->getModel();
      	$xml = $model->getPieceInfo();
      	$results = new SimpleXMLElement($xml);
      	$result_set = $model->outputPieceResults($results);
      	
      	// Set browser title
		$document = & JFactory::getDocument();
		$document->setTitle('Collection Online | ' . $result_set->browser_title);
      	
		$this->assignRef('results',	$result_set);

		parent::display($tpl);
    }
}
?>